FROM java:openjdk-8-jre
LABEL maintainer "engineering@futurecreative.cn"

ARG REVISION_ID

ENV LANG C.UTF-8
ENV HOME /opt

COPY target/portal-$REVISION_ID.jar $HOME/portal.jar
COPY keystore.p12 $HOME/keystore.p12

ENTRYPOINT exec java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTIONS -jar $HOME/portal.jar

# 创建镜像命令 docker build --build-arg REVISION_ID=0.0.1-SNAPSHOT -t dobuymall-portal:0.0.1 .